package com.sxit.myproscenium.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wcn
 * @since 2022-04-10
 */
@TableName("sys_carousel")
@Schema(name = "Carousel对象", description = "")
public class Carousel implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "轮播图Id")
  @TableId(value = "carousel_id", type = IdType.AUTO)
  private Integer carouselId;

  @Schema(description = "商品的id")
  private Long goodsId;

  @Schema(description = "轮播图")
  private String picture;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  @Schema(description = "是否展示")
  private Integer isShow;

  public Integer getCarouselId() {
    return carouselId;
  }

  public void setCarouselId(Integer carouselId) {
    this.carouselId = carouselId;
  }

  public Long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
  }

  public String getPicture() {
    return picture;
  }

  public void setPicture(String picture) {
    this.picture = picture;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public Integer getIsShow() {
    return isShow;
  }

  public void setIsShow(Integer isShow) {
    this.isShow = isShow;
  }

  @Override
  public String toString() {
    return "Carousel{"
        + "carouselId="
        + carouselId
        + ", goodsId="
        + goodsId
        + ", picture="
        + picture
        + ", createTime="
        + createTime
        + ", isShow="
        + isShow
        + "}";
  }
}
